package com.dongdong.service.impl;

import com.dongdong.mapper.TbSeckillOrderMapper;
import com.dongdong.model.TbSeckillOrder;
import com.dongdong.service.SeckillOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SeckillOrderServiceImpl implements SeckillOrderService {

    @Autowired
    private TbSeckillOrderMapper seckillOrderMapper;

    @Override
    public int generateSeckillOrder(TbSeckillOrder order) {
        int i = seckillOrderMapper.insertSelective(order);
        return i;
    }
}
